package com.yykj.pay.center.client.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PayCreateForm {

    @NotEmpty(message = "业务唯一订单号不能为空")
    @ApiModelProperty(value = "业务唯一订单号", required = true)
    private String orderNo;

    @ApiModelProperty("订单描述")
    private String description = "";

    @NotEmpty(message = "用户openId不能为空")
    @ApiModelProperty(value = "用户openId", required = true)
    private String openId;

    @Min(value = 1, message = "订单金额不能为空")
    @ApiModelProperty(value = "订单金额,单位,分", required = true)
    private int amount;

    @ApiModelProperty("附加数据")
    private String attach = "";

    @ApiModelProperty(value = "医院ID", required = true)
    @Min(value = 1,message = "医院ID不能为空")
    private int hospitalId;

}
